﻿using System.Collections.Generic;

namespace SimulationPTSystem.DAL
{
    /// <summary>
    /// 团队信息
    /// </summary>
    public class TeamInfo : DALObjectBase
    {
        private string code;
        private string name;
        private int chengYuanCount;

        /// <summary>
        /// 编号
        /// </summary>
        public string Code { get => code; set =>  SetProperty(ref code,value); }
        /// <summary>
        /// 团队名称
        /// </summary>
        public string Name { get => name; set =>  SetProperty(ref name,value); }
        /// <summary>
        /// 成员数量
        /// </summary>
        public int ChengYuanCount { get => chengYuanCount; set => SetProperty(ref chengYuanCount, value); }

        /// <summary>
        /// 团队中成员信息集合
        /// </summary>
        public virtual ICollection<ChengYuanInfo> ChengYuanInfos { get; set; }

        /// <summary>
        /// 团队训练记录集合
        /// </summary>
        public virtual ICollection<TeamTrainingRec> TeamTrainingRecs { get; set; }
    }
}
